//
//  BoxViewController.h
//  OrderSeat
//
//  Created by haiming on 13-10-11.
//  Copyright (c) 2013年 wangwei. All rights reserved.
//

#import "BoxCell.h"
#import "MWPhotoBrowser.h"
#import <AssetsLibrary/AssetsLibrary.h>

@class BoxDataSource;
@interface BoxViewController : BaseViewController<BoxCellDelegate,MWPhotoBrowserDelegate,UIAlertViewDelegate>

@property (strong, nonatomic) IBOutlet UIButton *orderTimeBtn;
@property (strong, nonatomic) IBOutlet UILabel *totalCountLabel;
@property (strong, nonatomic) IBOutlet UIView *topView;
@property (strong, nonatomic) IBOutlet UIView *downView;
@property (strong, nonatomic) IBOutlet UITableView *boxTV;
@property (weak, nonatomic) IBOutlet UIButton *btnDone;

@property (strong, nonatomic) NSMutableArray *photoList;

@property (assign, nonatomic) int seatState;
@property (strong, nonatomic) NSString *shopId;
@property (strong, nonatomic) NSString *orderTime;
@property (strong, nonatomic) BoxDataSource *dataSource;

- (id)initWithURL:(NSString *)url;
- (void)updateViews:(NSDictionary*)dictionary;

@end


@interface BoxDataSource : BaseDataSource<UITableViewDelegate,UITableViewDataSource>

@property (strong, nonatomic) BoxViewController *viewController;
@property (strong, nonatomic) NSMutableArray *seatList;
@property (strong, nonatomic) NSMutableDictionary *seatEntity;

- (void)fetchSeatListWithURL:(NSString*)url;

@end